package com.smart.campus.school.domain;

import com.smart.campus.common.annotation.Excel;
import com.smart.campus.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 *  校徽对象 sc_badge
 * @Author: 729002330@qq.com
 * @date :2020/5/24
 */
public class ScBadge extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    @Excel(name = "校徽号")
    private String badgeNo;

    /** 人员Id */
    @Excel(name = "人员Id")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 姓名 */
    @Excel(name = "学号/教师编号")
    private String userNo;

    /** 校徽状态  1启用 0 停用 -1 丢失*/
    @Excel(name = "状态  1启用 0 停用 -1 丢失")
    private Integer status;

    /** 类型  1教师 0 学生*/
    @Excel(name = "类型  1教师 2 学生")
    private Integer userType;
    /**  学校ID */
    private Long scId;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBadgeNo() {
        return badgeNo;
    }

    public void setBadgeNo(String badgeNo) {
        this.badgeNo = badgeNo;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("badgeNo",getBadgeNo())
                .append("userId",getUserId())
                .append("userNo",getUserNo())
                .append("userName",getUserName())
                .append("status",getStatus())
                .append("userType",getUserType())
                .append("createTime",getCreateTime())
                .append("createBy",getCreateBy())
                .append("updateBy",getUpdateBy())
                .append("updateTime",getUpdateTime())
                .append("scId",getScId())
                .append("remark",getRemark()).toString();
    }

    public Long getScId() {
        return scId;
    }

    public void setScId(Long scId) {
        this.scId = scId;
    }
}
